package cn.dulian.spring5.service;

import cn.dulian.spring5.dao.UserDao;

/**
 * @author dulian
 * @create 2022-04-14 22:31
 */
public class UserService {
    //创建UserDao类型熟悉，生成set方法
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void add(){
        System.out.println("service add..");
        userDao.update();
    }
}
